package com.guavestudios.fnfo.plugins {
	import com.guavestudios.fnfo.plugins.BasicFnfoPlugin;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author maze
	 */
	public class LastErrorPlugin extends BasicFnfoPlugin{
		
		public function LastErrorPlugin() {
			super();
			_pluginId = "LastErrorPlugin";
		}
		
		override protected function fnfo_gatherData(e:Event):void {
			super.fnfo_display_data(e);
			
			if (_fnfo.data["lastError"] != null) {
				_fnfo.printInfo("LastError", _fnfo.data["lastError"]);
			} else {
				_fnfo.printInfo("LastError", "none");
			}
		}
	}

}